export default {
  pageSetting: {
    size: [595.28, 841.89],
    layout: 'portrait',
    margins: { top: 0.0, left: 0.0, bottom: 0.0, right: 0.0 },
    reportCount: 3,
  },
  controls: [
    {
      id: 1,
      type: 'text',
      name: '凭证号',
      caption: '凭证号',
      showCaption: true,
      origin: 'master',
      dataField: 'word',
      isPageNumber: false,
      value: '',
      relativeTable: false,
      position: { top: 60.0, left: 50.0 },
      size: { width: 495.28, height: 30.0 },
      textStyle: {
        font: { name: 'normal', size: 12 },
        align: 'right',
        valign: 'top',
        margins: { top: 0.0, left: 0.0, bottom: 0.0, right: 40.0 },
      },
    },
    {
      id: 2,
      type: 'text',
      name: '日期',
      caption: '日期',
      showCaption: true,
      origin: 'master',
      dataField: 'date',
      isPageNumber: false,
      value: '',
      relativeTable: false,
      position: { top: 60.0, left: 50.0 },
      size: { width: 495.28, height: 30.0 },
      textStyle: {
        font: { name: 'normal', size: 12 },
        align: 'center',
        valign: 'top',
        margins: { top: 0.0, left: 0.0, bottom: 0.0, right: 0.0 },
      },
    },
    {
      id: 3,
      type: 'text',
      name: '附单据',
      caption: '附单据',
      showCaption: true,
      origin: 'master',
      dataField: 'attachCount',
      isPageNumber: false,
      value: '0',
      relativeTable: false,
      position: { top: 40.0, left: 50.0 },
      size: { width: 495.28, height: 30.0 },
      textStyle: {
        font: { name: 'normal', size: 12 },
        align: 'right',
        valign: 'top',
        margins: { top: 0.0, left: 0.0, bottom: 0.0, right: 30.0 },
      },
    },
    {
      id: 4,
      type: 'text',
      name: '制单',
      caption: '制单',
      showCaption: true,
      origin: 'master',
      dataField: 'zdr',
      isPageNumber: false,
      value: '',
      relativeTable: true,
      position: { top: 5.0, left: 50.0 },
      size: { width: 200.0, height: 30.0 },
      textStyle: {
        font: { name: 'normal', size: 12 },
        align: 'left',
        valign: 'top',
        margins: { top: 0.0, left: 0.0, bottom: 0.0, right: 0.0 },
      },
    },
    {
      id: 5,
      type: 'text',
      name: '审核',
      caption: '审核',
      showCaption: true,
      origin: 'master',
      dataField: 'auditor',
      isPageNumber: false,
      value: '',
      relativeTable: true,
      position: { top: 5.0, left: 50.0 },
      size: { width: 495.28, height: 30.0 },
      textStyle: {
        font: { name: 'normal', size: 12 },
        align: 'center',
        valign: 'top',
        margins: { top: 0.0, left: 0.0, bottom: 0.0, right: 0.0 },
      },
    },
    {
      id: 6,
      type: 'text',
      name: '出纳',
      caption: '出纳',
      showCaption: true,
      origin: 'master',
      dataField: 'cashiersign',
      isPageNumber: false,
      value: '',
      relativeTable: true,
      position: { top: 5.0, left: 465.0 },
      size: { width: 200.0, height: 30.0 },
      textStyle: {
        font: { name: 'normal', size: 12 },
        align: 'left',
        valign: 'top',
        margins: { top: 0.0, left: 0.0, bottom: 0.0, right: 0.0 },
      },
    },
    {
      id: 7,
      type: 'text',
      name: '公司',
      caption: '公司',
      showCaption: false,
      origin: 'master',
      dataField: 'company',
      isPageNumber: false,
      value: '',
      relativeTable: false,
      position: { top: 25.0, left: 50.0 },
      size: { width: 200.0, height: 50.0 },
      textStyle: {
        font: { name: 'normal', size: 12 },
        align: 'left',
        valign: 'bottom',
        margins: { top: 0.0, left: 0.0, bottom: 0.0, right: 0.0 },
      },
    },
    {
      id: 8,
      type: 'text',
      name: '标题',
      caption: '标题',
      showCaption: false,
      origin: 'master',
      dataField: 'title',
      isPageNumber: false,
      value: '记账凭证',
      relativeTable: false,
      position: { top: 20.0, left: 50.0 },
      size: { width: 495.28, height: 30.0 },
      textStyle: {
        font: { name: 'blod', size: 20 },
        align: 'center',
        valign: 'top',
        margins: { top: 0.0, left: 0.0, bottom: 0.0, right: 0.0 },
      },
    },
    {
      id: 9,
      type: 'text',
      name: '页码',
      caption: '页码',
      showCaption: false,
      origin: 'value',
      dataField: '',
      isPageNumber: true,
      value: '(@count/@num)',
      relativeTable: false,
      position: { top: 60.0, left: 50.0 },
      size: { width: 495.28, height: 30.0 },
      textStyle: {
        font: { name: 'normal', size: 12 },
        align: 'right',
        valign: 'top',
        margins: { top: 0.0, left: 0.0, bottom: 0.0, right: 0.0 },
      },
    },
    {
      id: 10,
      type: 'text',
      name: '原单据',
      caption: '原单据',
      showCaption: true,
      origin: 'master',
      dataField: 'numbers',
      isPageNumber: false,
      value: '',
      relativeTable: false,
      position: { top: 10.0, left: 400.0 },
      size: { width: 160.0, height: 10.0 },
      textStyle: {
        font: { name: 'normal', size: 12 },
        align: 'right',
        valign: 'top',
        margins: { top: 0.0, left: 0.0, bottom: 0.0, right: 0.0 },
      },
    },
  ],
  table: {
    fixedRowCount: true,
    rowCount: 5,
    renderWhiteRow: true,
    position: { top: 80.0, left: 50.0 },
    size: { width: 495.28, height: 0.0 },
    fixedRows: [
      {
        type: 'normal',
        multHeader: false,
        fixedRowHeight: true,
        height: 25.0,
        cells: [
          {
            name: '摘要',
            origin: 'master',
            value: '',
            columnSpan: 1,
            dataField: 'zytotal',
            merger: false,
            groupName: '',
            textStyle: {
              font: { name: 'normal', size: 10 },
              align: 'left',
              valign: 'middle',
              margins: { top: 0.0, left: 5.0, bottom: 0.0, right: 0.0 },
            },
          },
          {
            name: '数量',
            origin: 'value',
            value: '',
            columnSpan: 0,
            dataField: 'debittotal',
            merger: false,
            groupName: '',
            textStyle: {
              font: { name: 'light', size: 10 },
              align: 'right',
              valign: 'middle',
              margins: { top: 0.0, left: 0.0, bottom: 0.0, right: 5.0 },
            },
          },
          {
            name: '外币',
            origin: 'value',
            value: '',
            columnSpan: 0,
            dataField: 'debittotal',
            merger: false,
            groupName: '',
            textStyle: {
              font: { name: 'light', size: 10 },
              align: 'right',
              valign: 'middle',
              margins: { top: 0.0, left: 0.0, bottom: 0.0, right: 5.0 },
            },
          },
          {
            name: '借方金额',
            origin: 'master',
            value: '',
            columnSpan: 0,
            dataField: 'debittotal',
            merger: false,
            groupName: '',
            textStyle: {
              font: { name: 'light', size: 10 },
              align: 'right',
              valign: 'middle',
              margins: { top: 0.0, left: 0.0, bottom: 0.0, right: 5.0 },
            },
          },
          {
            name: '贷方金额',
            origin: 'master',
            value: '',
            columnSpan: 0,
            dataField: 'credittotal',
            merger: false,
            groupName: '',
            textStyle: {
              font: { name: 'light', size: 10 },
              align: 'right',
              valign: 'middle',
              margins: { top: 0.0, left: 0.0, bottom: 0.0, right: 5.0 },
            },
          },
        ],
      },
    ],
    columns: [
      { name: '摘要', fixedWidth: false, width: 0.0, precent: 20.0 },
      { name: '会计科目', fixedWidth: false, width: 0.0, precent: 20.0 },
      { name: '借方金额', fixedWidth: false, width: 0.0, precent: 10.0 },
      { name: '贷方金额', fixedWidth: false, width: 0.0, precent: 10.0 },
      { name: '数量', fixedWidth: false, width: 0.0, precent: 10.0 },
      { name: '外币', fixedWidth: false, width: 0.0, precent: 10.0 },
    ],
    rows: [
      {
        type: 'header',
        multHeader: false,
        fixedRowHeight: true,
        height: 25.0,
        cells: [
          {
            name: '摘要',
            origin: 'value',
            value: '摘要',
            columnSpan: 0,
            dataField: null,
            merger: false,
            groupName: null,
            textStyle: {
              font: { name: 'blod', size: 12 },
              align: 'center',
              valign: 'middle',
              margins: { top: 0.0, left: 0.0, bottom: 0.0, right: 0.0 },
            },
          },
          {
            name: '会计科目',
            origin: 'value',
            value: '会计科目',
            columnSpan: 0,
            dataField: null,
            merger: false,
            groupName: null,
            textStyle: {
              font: { name: 'blod', size: 12 },
              align: 'center',
              valign: 'middle',
              margins: { top: 0.0, left: 0.0, bottom: 0.0, right: 0.0 },
            },
          },
          {
            name: '数量',
            origin: 'value',
            value: '数量',
            columnSpan: 0,
            dataField: null,
            merger: false,
            groupName: null,
            textStyle: {
              font: { name: 'blod', size: 12 },
              align: 'center',
              valign: 'middle',
              margins: { top: 0.0, left: 0.0, bottom: 0.0, right: 0.0 },
            },
          },
          {
            name: '外币',
            origin: 'value',
            value: '外币',
            columnSpan: 0,
            dataField: null,
            merger: false,
            groupName: null,
            textStyle: {
              font: { name: 'blod', size: 12 },
              align: 'center',
              valign: 'middle',
              margins: { top: 0.0, left: 0.0, bottom: 0.0, right: 0.0 },
            },
          },
          {
            name: '借方金额',
            origin: 'value',
            value: '借方金额',
            columnSpan: 0,
            dataField: null,
            merger: false,
            groupName: null,
            textStyle: {
              font: { name: 'blod', size: 12 },
              align: 'center',
              valign: 'middle',
              margins: { top: 0.0, left: 0.0, bottom: 0.0, right: 0.0 },
            },
          },
          {
            name: '贷方金额',
            origin: 'value',
            value: '贷方金额',
            columnSpan: 0,
            dataField: null,
            merger: false,
            groupName: null,
            textStyle: {
              font: { name: 'blod', size: 12 },
              align: 'center',
              valign: 'middle',
              margins: { top: 0.0, left: 0.0, bottom: 0.0, right: 0.0 },
            },
          },
        ],
      },
      {
        type: 'detail',
        multHeader: false,
        fixedRowHeight: true,
        height: 25.0,
        cells: [
          {
            name: '摘要',
            origin: 'detail',
            value: '摘要',
            columnSpan: 0,
            dataField: 'zy',
            merger: false,
            groupName: null,
            textStyle: {
              font: { name: 'normal', size: 10 },
              align: 'left',
              valign: 'middle',
              margins: { top: 0.0, left: 5.0, bottom: 0.0, right: 0.0 },
            },
          },
          {
            name: '会计科目',
            origin: 'detail',
            value: '会计科目',
            columnSpan: 0,
            dataField: 'km',
            merger: false,
            groupName: null,
            textStyle: {
              font: { name: 'normal', size: 10 },
              align: 'left',
              valign: 'middle',
              margins: { top: 0.0, left: 5.0, bottom: 0.0, right: 0.0 },
            },
          },
          {
            name: '数量',
            origin: 'detail',
            value: '数量',
            columnSpan: 0,
            dataField: 'numberprint',
            merger: false,
            groupName: null,
            textStyle: {
              font: { name: 'normal', size: 10 },
              align: 'left',
              valign: 'middle',
              margins: { top: 0.0, left: 5.0, bottom: 0.0, right: 0.0 },
            },
          },
          {
            name: '外币',
            origin: 'detail',
            value: '外币',
            columnSpan: 0,
            dataField: 'rawsumprint',
            merger: false,
            groupName: null,
            textStyle: {
              font: { name: 'normal', size: 10 },
              align: 'left',
              valign: 'middle',
              margins: { top: 0.0, left: 5.0, bottom: 0.0, right: 0.0 },
            },
          },
          {
            name: '借方金额',
            origin: 'detail',
            value: '借方金额',
            columnSpan: 0,
            dataField: 'debit',
            merger: false,
            groupName: null,
            textStyle: {
              font: { name: 'light', size: 10 },
              align: 'right',
              valign: 'middle',
              margins: { top: 0.0, left: 0.0, bottom: 0.0, right: 5.0 },
            },
          },
          {
            name: '贷方金额',
            origin: 'detail',
            value: '贷方金额',
            columnSpan: 0,
            dataField: 'credit',
            merger: false,
            groupName: null,
            textStyle: {
              font: { name: 'light', size: 10 },
              align: 'right',
              valign: 'middle',
              margins: { top: 0.0, left: 0.0, bottom: 0.0, right: 5.0 },
            },
          },
        ],
      },
    ],
  },
};
